package com.alibaba.citrus.ots.b2b.trade.order.functions.deliveryOrderDetail.factory;

import com.alibaba.citrus.ots.b2b.trade.order.functions.deliveryOrderDetail.entity.DeliveryOrderDetailEntity;
import com.alibaba.citrus.ots.b2b.trade.order.functions.utils.ModifyDeliveryOrderDetailConverter;
import com.epoch.app.otsb2btradecenter.dto.request.SendOutGoodsRequest;
import com.epoch.app.otsb2btradecenter.sdo.DeliveryOrderDetailSDO;

public class DeliveryOrderDetailFactory {

    public static DeliveryOrderDetailEntity modifyStatus(SendOutGoodsRequest request){
        DeliveryOrderDetailSDO deliveryOrderDetailSDO = ModifyDeliveryOrderDetailConverter.converter(request);
        DeliveryOrderDetailEntity deliveryOrderDetailEntity = DeliveryOrderDetailEntity.of(deliveryOrderDetailSDO);
        return deliveryOrderDetailEntity;
    }
}
